package com.tianji.aigc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
* 用户会话详情表
 * @author zgp
* @TableName chat_detail
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("chat_detail")
public class ChatDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
    * 主键id
    */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 会话id，32位的uuid
     */
    private String conversationId;
    /**
    * 用户id
    */
    private Long userId;
    /**
    * 消息原始Json内容
    */
    private String originalMessage;
    /**
    * 创建时间
    */
    private LocalDateTime createTime;

}
